/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package myUI;

import bean.Subject;
import java.util.Vector;
import javax.swing.JComboBox;

/**
 *
 * @author lxyY500
 */
public class SubjectComboBox extends  JComboBox<Subject>{
    private int week;
    private int part;
    
    public SubjectComboBox(Vector<Subject> items,int week,int part){
        super(items);
        setWeek(week);
        setPart(part);
    }

    /**
     * @return the week
     */
    public int getWeek() {
        return week;
    }

    /**
     * @param week the week to set
     */
    public void setWeek(int week) {
        this.week = week;
    }

    /**
     * @return the part
     */
    public int getPart() {
        return part;
    }

    /**
     * @param part the part to set
     */
    public void setPart(int part) {
        this.part = part;
    }
}
